package cn.wzvtc.soft14;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/3/25.
 */
@Service

public class UserService {

    @Autowired
    private UserRePo userRePo;
    String selete(){
        return null;
    }
    Boolean save(User user){
        this.userRePo.save(user);
        return true;
    }
    List select(String username){
        return this.userRePo.findByusername(username);
    }
}
